package com.novax.ex.activity.infrastructure.mapper;
import java.math.BigDecimal;

import com.novax.ex.activity.infrastructure.entity.IeoConfig;
import com.novax.ex.activity.infrastructure.entity.IeoExtConfig;
import com.novax.ex.common.base.BaseMapper;
import com.novax.ex.common.results.ReturnResult;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Description 后台活动配置Mapper
 * @Author Cody
 * @Date 2022/12/01/17:53
*/
public interface IeoConfigMapper extends BaseMapper {

    /**
     * Description: 查询所有活动
     *
     * @param status 状态
     * @param date 时间
     * @return java.util.List<com.novax.ex.activity.infrastructure.entity.IeoConfig>
     * @author shaw
     * @date 12/13/22 10:57 AM
     */
    List<IeoExtConfig> selectConfigs(@Param("status") Integer status, @Param("date") Date date);

    /**
     * Description: 查询所有活动 -> 查所有状态并排序
     *
     * @return java.util.List<com.novax.ex.activity.infrastructure.entity.IeoConfig>
     * @author shaw
     * @date 12/13/22 10:57 AM
     */
    List<IeoExtConfig> selectAllConfigs();

    /**
     * 更新多个通过id
     *
     * @param multiple 多个
     * @param id       id
     * @return int
     */
    int updateMultipleById(@Param("multiple") BigDecimal multiple, @Param("id") Long id);


    /**
     * @Description: 查询所有应发币的分期IEO
     * @Author: ChenXi
     * @Date:  2023/5/6 11:10
     * @param
     * @return: java.util.List<com.novax.ex.activity.infrastructure.entity.IeoConfig>
     **/
    List<IeoConfig> findAllStageIeo();

    /**
     * @Description: 项目币种下拉框
     * @Author: ChenXi
     * @Date:  2023/5/18 16:59
     * @param
     * @return: java.util.List<java.lang.String>
     **/
    List<String> queryBox();

}